import Vue from 'vue'
import Router from 'vue-router'
import HomePage from '@/views/basic/HomePage'
import TestRoute from '@/views/basic/TestRoute'
import TestRouteA from '@/views/basic/TestRouteA'
import TestRouteB from '@/views/basic/TestRouteB'
import TestRouteC from '@/views/basic/TestRouteC'


Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: '首页',
      component: HomePage,
      children: [{
        	path: '/home',
        	name: 'home',
        	component: TestRoute
      },{
          path: '/homeA',
          name: 'homeA',
          component: TestRouteA
      },{
          path: '/homeB',
          name: 'homeB',
          component: TestRouteB
      },{
          path: '/homeC',
          name: 'homeC',
          component: TestRouteC
      }]
    }
  ]
})
